package com.thyme.repository;

import com.thyme.domain.Blog;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author thyme
 * @ClassName BlogRepository
 * @Description TODO
 * @Date 2020/4/29 22:18
 */
@Repository
public interface BlogRepository extends ElasticsearchRepository<Blog,String> {

    List<Blog> findByContentContains(String content);

}
